package com.seo.mapper.keyword;

import java.util.List;
import java.util.Map;

public interface KeywordMapper {

	/**
	 * 获取关键词报价
	 * @return List<Map<String, Object>>
	 */
	List<Map<String, Object>> getKeyWordOffer();

	/**
	 * 获取关键词是否在配置中
	 * @param keyWord 关键词
	 * @return int
	 */
	int getkeyWordConfig(String keyWord);

	/**
	 * 获取搜索引擎
	 * @return List<Map<String, Object>>
	 */
	List<Map<String, Object>> getEngineList();

	/**
	 * 获取用户
	 * @param param param
	 * @return Map<String, Object>
	 */
	Map<String, Object> getUserByUserName(Map<String, Object> param);

	/**
	 * 获取代理关键词报价
	 * @return List<Map<String, Object>>
	 */
	List<Map<String, Object>> getKeyWordOfferProxy(Integer userId);

	/**
	 * 添加关键词
	 * @param param param
	 */
	void saveKeyWord(Map<String, Object> param);

	/**
	 * 添加关键词
	 * @param param param
	 */
	void saveKeyWord1(Map<String, Object> pa);

	/**
	 * 添加代理用户关键词
	 * @param param param
	 */
	void saveKeyWordProxy(Map<String, Object> pa);

	/**
	 * 添加关键词指数
	 * @param param param
	 */
	int saveIndex(Map<String, Object> params);

	Map<String, Object> getIndexById(Integer id);

	int updateIndex(Map<String, Object> params);

	int deleteIndex(Integer id);

	Map<String, Object> getProxyIndexById(Integer id);

	List<Map<String, Object>> getKeyWordIndexProxy(Integer userId);

	int saveProxyIndex(Map<String, Object> params);

	List<Map<String, Object>> getKeywordGroupList(Map<String, Object> params);

	int saveGroup(Map<String, Object> params);

	int getKeywordGroupNum(Integer id);

	int deleteGroup(Integer id);

	int updateGroup(Map<String, Object> params);
	
	int getRecycleBinCnt(Map<String, Object> params);
	
	List<Map<String, Object>> getRecycleBinList(Map<String, Object> params);
	
	int updateKeyWordD(Map<String, Object> pam);
	
	int deleteK(Map<String, Object> pam);
	
	int deleteK1(Map<String, Object> pam);

	int getKeyWordNum(Map<String, Object> pa);

	int saveKeyWordRevision(Map<String, Object> pa);

	int saveKeyWordRelation(Map<String, Object> m);

	int updateKeyWordRelationToChildUserId(Map<String, Object> m);

	List<Map<String, Object>> getVipLevelPriceList(Map<String, Object> param);

	int updateVipLevelState(Map<String, Object> param);

	int deleteVipLevelById(Map<String, Object> params);

	int saveVipLevel(Map<String, Object> params);

	int updateVipLevel(Map<String, Object> params);

	int updateVipLevelIsDefaultAll(Map<String, Object> vlp);

	int updateVipLevelIsDefault(Map<String, Object> params);

	List<Map<String, Object>> getUserVipLevelPriceList(Map<String, Object> param);

	int updateUserVipLevelState(Map<String, Object> param);

	int updateUserVipLevel(Map<String, Object> params);

	int updateUserVipLevelIsDefaultAll(Map<String, Object> vlp);

	int updateUserVipLevelIsDefault(Map<String, Object> params);

	int updateBacthUserVipLevelState(Map<String, Object> pam);

	int updateBacthVipLevelState(Map<String, Object> pam);

	int deleteKeyWordR(Map<String, Object> pam);

}
